﻿using L.EntityFramework;
using L.EntityModel.Model;
using L.EntityModel.Model.AntiFake;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L.EntityModel
{
    /// <summary>
    /// 将实体类注入上下文中
    /// Lv
    /// 2018/02/26
    /// </summary>
    public class EntityContext :BaseContext
    {
        public EntityContext()
            : base("mgj_basemysql")
        {

        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            Database.SetInitializer<EntityContext>(null);
            base.OnModelCreating(modelBuilder);
        }

        //示例
        //T 实体类名称
        //public DbSet<T> T { get; set; }
        public DbSet<Sys_User> Sys_User { get; set; }
        public DbSet<V_User> V_User { get; set; }
        public DbSet<AntiFake_Comment> AntiFake_Comment { get; set; }
        public DbSet<AntiFake_CommentReply> AntiFake_CommentReply { get; set; }
        public DbSet<AntiFake_FeedBack> AntiFake_FeedBack { get; set; }
        public DbSet<AntiFake_PageCreate> AntiFake_PageCreate { get; set; }
        public DbSet<Sys_PushMessage> Sys_PushMessage { get; set; }
        public DbSet<AntiFleeing_DistributorLevel> AntiFleeing_DistributorLevel { get; set; }
        public DbSet<Antifake_Button> Antifake_Button { get; set; }
        public DbSet<AntiFake_QueryReply> AntiFake_QueryReply { get; set; }
        public DbSet<CodeManage_Allot> CodeManage_Allot { get; set; }
        public DbSet<AntiFleeing_Warehouse> AntiFleeing_Warehouse { get; set; }
        public DbSet<AntiFake_QueryCodeLog> AntiFake_QueryCodeLog { get; set; }
        public DbSet<CodeLog> CodeLog { get; set; }
        public DbSet<CreatePageModel> CreatePageModel { get; set; }
        public DbSet<CodeManage_Apply> CodeManage_Apply { get; set; }
        public DbSet<CodeManage_GenCodeBatch> CodeManage_GenCodeBatch { get; set; }
        public DbSet<Sys_Log> Sys_Log { get; set; }
        public DbSet<Organization_Enterprise> Organization_Enterprise { get; set; }
        public DbSet<Product_Product> Product_Product { get; set; }
        public DbSet<Product_ProductTypes> Product_ProductTypes { get; set; }
        public DbSet<Product_Batch> Product_Batch { get; set; }
        public DbSet<AntiFleeing_Distributor> AntiFleeing_Distributor { get; set; }
        public DbSet<Origins_Auth> Origins_Auth { get; set; }
        public DbSet<CodeManage_GenCode> CodeManage_GenCode { get; set; }
        public DbSet<CodeManage_Card> CodeManage_Card { get; set; }
        public DbSet<CodeManage_CodeRelate> CodeManage_CodeRelate { get; set; }
        public DbSet<AntiFake_Digitcode> AntiFake_Digitcode { get; set; }
        
    }
}
